package top.lshaci.learning.springboot.jpaquerydsl.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import top.lshaci.learning.springboot.jpaquerydsl.base.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

/**
 * User
 *
 * @author lshaci
 * @since 1.0.0
 */
@Data
@Entity
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = "t_user")
public class User extends BaseEntity {

    private String name;

    private String nick;

    private Integer age;

    private Date birthday;

    private LocalDate registerDate;

    private LocalTime registerTime;

    private LocalDateTime registerDateTime;
}
